package com.icare.shop.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * <pre>
 *    author  : tianhaibo
 *    email   : tianhaibo@jshuii.com
 *    time    : 2020/3/12   20:08
 *    desc    :
 *    version : v1.0
 * </pre>
 */
@FeignClient(value = "trade-server",qualifier = "configTradeFeignService")
public interface TradeFeignService {

    @PostMapping("v1/submitOrder")
    String submitOrder(@RequestBody Map<String,Object> req);

    @GetMapping("v1/getShopInfo")
    String getShopInfo(@RequestParam("id") Long id);

}
